package com.qianji.petmall.authserver.constant;

/**
 * @author liang zai
 * @date 2022/3/30 11:32
 * @description
 */
public class GiteeConstant {
    // 码云我的应用中对应的 客户端id
    public static final String clientId = "875497a10cd72f47cf9a7b9ab32d692db98242f2c514b77fb57561a1b1d6a798";
    // 码云我的应用中对应的 clientSecret
    public static final String clientSecret = "de51c58dc01f908a4641e668ec60646e9be897d52d331cc2d20fcb3d0d5d8e60";
    // 配置的回调接口地址
    public static final String callback = "http://auth.petmall.com/oauth2/gitee/success";
    // 跳转码云的授权页面
    public static final String giteeURI = "https://gitee.com/oauth/authorize?client_id="+ clientId +"&redirect_uri="+ callback+ "&response_type=code";
    // 通过码云的code换取他的token凭据
    public static final String address = "https://gitee.com";
    // 获取"access_token"
    public static final String path = "/oauth/token";
    // 通过码云服务的token凭据 获取用户信息
    public static final String userInfo = "https://gitee.com/api/v5/user";
}
